package com.ygs.secs.service.impl;

import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

import com.ygs.secs.mapper.InstructorMapper;
import com.ygs.secs.model.Instructor;
import com.ygs.secs.service.InstructorService;

@Service
public class InstructorServiceImpl implements InstructorService {

    @Resource
    private InstructorMapper instructorMapper;

    @Override
    public int deleteByPrimaryKey(String instructorid) {
        return instructorMapper.deleteByPrimaryKey(instructorid);
    }

    @Override
    public int insert(Instructor record) {
        return instructorMapper.insert(record);
    }

    @Override
    public int insertSelective(Instructor record) {
        return instructorMapper.insertSelective(record);
    }

    @Override
    public Instructor selectByPrimaryKey(String instructorid) {
        return instructorMapper.selectByPrimaryKey(instructorid);
    }

    @Override
    public int updateByPrimaryKeySelective(Instructor record) {
        return instructorMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Instructor record) {
        return instructorMapper.updateByPrimaryKey(record);
    }

    @Override
    public int updateBatch(List<Instructor> list) {
        return instructorMapper.updateBatch(list);
    }

    @Override
    public int updateBatchSelective(List<Instructor> list) {
        return instructorMapper.updateBatchSelective(list);
    }

    @Override
    public int batchInsert(List<Instructor> list) {
        return instructorMapper.batchInsert(list);
    }

    @Override
    public int batchDelete(String[] instructors) {
        return instructorMapper.batchDelete(instructors);
    }

    @Override
    public List<Instructor> getInstructorByIdAndName(Instructor record) {
        return instructorMapper.getInstructorByIdAndName(record);
    }

}

